home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra_2 / flmgmtcl.zip / PATHITER.CPP < prev    next >
C/C++ Source or Header  |  1995-11-02  |  2KB  |  79 lines

  1. // ==========================================================================
  2. //                             Class Implementation : CPathIterator
  3. // ==========================================================================
  4.  
  5. // Source file : pathiter.cpp
  6.  
  7. // Source : Periphere NV (F.Melendez & R.Mortelmans)
  8. // Creation Date :        2nd November 1995
  9. // Last Modification : 2nd November 1995
  10.                           
  11. // //////////////////////////////////////////////////////////////////////////
  12.  
  13. #include "stdafx.h"        // standard MFC include
  14. #include "pathiter.h"        // class specification
  15.  
  16. #ifdef _DEBUG
  17. #undef THIS_FILE
  18. static char BASED_CODE THIS_FILE[] = __FILE__;
  19. #endif
  20.  
  21. IMPLEMENT_DYNAMIC(CPathIterator, CObject)
  22.  
  23. #define new DEBUG_NEW
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // Definition of static members
  27.  
  28.  
  29. // Data members -------------------------------------------------------------
  30. // protected:
  31.  
  32. // private:
  33.  
  34. // Member functions ---------------------------------------------------------
  35. // public:
  36.  
  37. CPathIterator::CPathIterator()
  38.     : m_bValid(FALSE)
  39.     {
  40.     }
  41.     
  42. CPathIterator::IsItValid()
  43.     {
  44.     return m_bValid;
  45.     }               
  46.     
  47. #ifdef _DEBUG
  48. void CPathIterator::Dump(CDumpContext& dc) const
  49.     {
  50.     CObject::Dump(dc);
  51. #ifdef WIN32
  52.     dc << TEXT("\nm_hFindFile : ") << m_hFindFile;
  53.     dc << TEXT("\nm_FindFileData : ") << (void*)&m_FindFileData;    
  54. #else
  55.     dc << TEXT("\nm_FileInfo : ") << (void*)&m_FileInfo;
  56. #endif
  57.     dc << TEXT("\nm_bValid : ") << (WORD)m_bValid;
  58.     }
  59.  
  60. void CPathIterator::AssertValid() const
  61.     {
  62.     CObject::AssertValid();
  63.     }
  64. #endif
  65.  
  66. CPathIterator::~CPathIterator()
  67.     {
  68. #ifdef WIN32    
  69.     if (m_hFindFile != NULL)
  70.         FindClose(m_hFindFile);
  71. #endif
  72.     }
  73.  
  74. // private:
  75.  
  76. // Message handlers ---------------------------------------------------------
  77.  
  78. // ==========================================================================
  79.